home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / BUS / DynRisk 68k 4.01 demo.sit / DynRisk-Help.rsrc / TEXT_6205.txt < prev    next >
Text File  |  1996-08-30  |  4KB  |  49 lines

  1. Correlation
  2.  
  3. Typically dependency between nodes in a DynRisk model is constructed by letting the output value of a node be calculated as a combination of its global input and its local value. If you e.g., choose 窶彜ingle窶 or 窶廛ouble窶 as the algorithm for a node, the dependency is represented as a simple functional relation between the local value of the node, its global input values, and its output value. As a side effect, the probability distribution of the output values will typically not be the same as the distribution of the local values.
  4.  
  5. Sometimes, however, you may wish to make sure that the distribution of the output values of the node is as close as possible to the distribution you specified for the local values of the node. At the same time you want the node to be dependent on other nodes. In such cases the 窶廚orrelation窶 operator is useful.
  6.  
  7. When using the correlation operator, you also have to specify a correlation coefficient. Simply stated the correlation coefficient is a number between -1 and +1 describing the degree of linear dependence between two random variables. 
  8.  
  9. If the correlation coefficient is positive, then large values of the first random variable typically occur in situations when the second variable is large as well, and vice versa. If the correlation coefficient is negative, then large values of the first random variable typically occur in situations when the second variable is small, and vice versa. A coefficient equal to either -1 or +1 means that one of the random variables is simply a linear function of the other. If on the other hand the coefficient is 0, there is no linear dependence at all. [The two random variables may still be dependent, but the dependence has a more complex non-linear structure.]
  10.  
  11. For each node you can only specify a single correlation coefficient. If, say Node 1 only has one input node, the correlation coefficient describes the dependence between the input node and Node 1. If Node 1 has several input nodes, the correlation coefficient describes the dependence between a certain linear combination of the input nodes and Node 1. This linear combination is determined automatically by DynRisk such that all the input nodes in a sense contribute equally to the uncertainty. More specifically, the input value, which we denote by G here, is calculated according to the following rule:
  12.  
  13.     G = a0 + a1 X1 + a2 X2 + ...
  14.  
  15. where X1, X2,窶ヲ denotes the output values of the input nodes, and a0, a1, a2,窶ヲ are constants determined by DynRisk such that:
  16.  
  17.     E(G) = 0 and SD(G) = 1
  18.  
  19. and:
  20.  
  21.     SD(a1 X1) = SD(a2 X2) = ...
  22.  
  23. where E denotes expected value, and SD denotes standard deviation.
  24.  
  25. Note that to get correct results all the input nodes must be independent of each other. Otherwise DynRisk has no way of determining the right constants, a0, a1, a2, 窶ヲ 
  26.  
  27. [You ensure that the input nodes of a correlation node are independent by avoiding undirected cycles among the correlation nodes and their respective predecessors.]
  28.  
  29. Unfortunately, for mathematical reasons it is not always possible to preserve all aspects of the local distribution when correlation is introduced. However, the way this is handled by DynRisk, ensures that the distribution of the output values at least has the right expected value and standard deviation. Specifically, the output value of a node with 窶廚orrelation窶 as algorithm is computed according to the following rule:
  30.  
  31.     Output value = a G + b L + c
  32.  
  33. where G denotes the input value calculated as above, L is the local value, and a, b and c are constants determined by DynRisk such that the output value gets the correct expected value and standard deviation.
  34.  
  35. To make all this work, there are certain restrictions that apply:
  36.  
  37. 1. You must include stochastic values in a correlation node.
  38.  
  39. 2. The local factor of a correlation node must be non-zero.
  40.  
  41. 3. You must include stochastic values in all input nodes to a correlation node.
  42.  
  43. 4. The local factors of all input nodes to a correlation node must be non-zero.
  44.  
  45. 5. All input nodes to a correlation node must be either correlation nodes or independent nodes.
  46.  
  47. 6. You cannot use edge functions in edges pointing into a correlation node.
  48.  
  49. If you violate any of these rules, DynRisk will warn you by displaying an error message.